package com.example.demo.sharding.jdbc;


import com.alibaba.druid.pool.DruidDataSource;
import io.shardingjdbc.core.api.config.MasterSlaveRuleConfiguration;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Map;

/**
 * Created by 蔡超 on 2018/10/19.
 */
@Data
@ConfigurationProperties(prefix = "sharding.jdbc")
public class ShardingMastSlaveConfig {

    private Map<String, DruidDataSource> dataSources;

    private MasterSlaveRuleConfiguration masterSlaveRule;

}

